package com.hdaccp.letting1;

import com.alibaba.dubbo.config.annotation.Reference;
import com.hdaccp.letting1.entity.Userinfo;
import com.hdaccp.letting1.service.UserInfoService;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class MyUserInfoService {
    @Reference
    private UserInfoService userInfoService ;
    public void  show(){
        List<Userinfo> list = userInfoService.queryAll() ;
        for(Userinfo userinfo : list){
            System.out.println(userinfo.getUsername());
        }
    }
}
